package java_option.javafx;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * 
 * @author java红了 | java_option <br>
 *         2020-11-49:03:48
 */
public class AudioApplication extends Application {

	public static void main(String[] args) {
		launch(args);
	}

	@Override
	public void start(Stage primaryStage) throws Exception {
		primaryStage.setAlwaysOnTop(true);
		try {
			Parent root = FXMLLoader.load(getClass().getResource("/audio.fxml"));
			primaryStage.setTitle("音频录制"); //
			primaryStage.setScene(new Scene(root));
			primaryStage.show();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@Override
	public void stop() throws Exception {
		super.stop();
		javafx.application.Platform.exit();
		System.exit(0);
	}

}
